package com.sun.eureka.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.sun.eureka.api.ICustomerService;

@RestController
public class OrderController {
	
	@Autowired
	private ICustomerService customerService; 
	
	/**
	 * 根据id查询客户信息
	 * @param id
	 * @return
	 */
	@RequestMapping("order/hello")
	public String hello(String name ) {
		return customerService.hello(name);
	}

}
